package com.sudu.dao;

import com.sudu.domain.Tag;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface TagDao {

    @Select("select tag from t_tag where _id = #{id}")
    String fineById(int id) ;

    @Select("select * from t_tag ")
    List<Tag> fineByAll() ;
}
